<%-- 
    Document   : index - Point of entry of Timetracker
    Created on : Nov 25, 2012, 9:48:11 PM
    Author     : gcastillo, nbenavidez
--%>

<%
    if (session != null) {	       // every session that comebacks to login is killed
        session.invalidate();
    }
    session = request.getSession(); // and a new empty session is created
%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta charset="utf-8" /> 
        <title>Timetracker Almori BPO Services - Bienvenido</title>
        <link rel="Shortcut icon" href="img/logo.png" />
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <!--[if IE 8]>
           <link rel="stylesheet" type="text/css" href="css/styleIE.css" />
        <![endif]-->

    </head>
    <body>
        <div class="title" align="center">
            <table>
                <tr>
                    <td>
                        <img src="img/alm.bpo.logo.png" height="40px" width="40px" style="float:left;" alt="company logo"></img>
                    </td>
                    <td>
                        ALMORI BPO Services<br/>
                        <font color="white" size="4px">Time Tracker System</font>
                    </td>
                </tr>
            </table>
        </div>
        <div class="container">

            <form id="signup" action="action.jsp" method="POST">

                <div class="header">
                    <img src="img/logo.png" alt="logo"></img>
                </div>

           <div class="inputs">
               <input type="hidden" name="action" value="1" />
               <input type="login" id="login" name="login" placeholder="Credencial" autofocus="true" />   
               <input type="password" id="password" name="password" placeholder="Clave" />
               <input id ="submit" type="submit" value="INGRESAR" />
          </div>
              
          <%
                   String mssg = request.getParameter("m"); 
                   if(mssg != null)
                   {
          %>    
     
          <br />    
          <div class="clean-green"><%= mssg %>!</div>
          
          <%
                   }
          %>
          <%
                   String error = request.getParameter("error"); 
                   if(error != null)
                   {
          %>    
          <br />    
          <div class="clean-red">Credenciales erroneas, trate nuevamente!</div>
          
          <%
                   }
          %>
          </form>
         </div>
    </body>
</html>